#!/bin/bash
# Zaitan Module - Mupen64 Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Games'
RMOD_NAME='Mupen64'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='0.5'
RMOD_DESCRIPTION='Installs Mupen64'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'


# install Mupen64

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

cd /usr/share/zaitan
	
wget -c http://mupen64.emulation64.com/files/0.5/mupen64-0.5.tar.bz2
tar -vxjpf mupen64-0.5.tar.bz2
mv mupen64-0.5 ~/.mupen64

echo 'cd ~/.mupen64 && ./mupen64' > mupen64
chmod +x mupen64 && mv mupen64 /usr/bin/mupen64





echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a ~/.packages/logs
/usr/lib/zaitan/modulo/mod-logs.rmod
##

exit 0

